<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"  xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorate="~{/layout/layout}">
<head>
    <title>电影列表</title>
</head>

<body>
<!--body部分-->
<div class="container" layout:fragment="content">
    <table class="table table-hover table-bordered ">
        <thead>
        <tr >
            <th>排名</th>
            <th>电影名称</th>
            <th>地区</th>
            <th>年代</th>
            <th>分类</th>
            <th>电影简述</th>
            <th>评分</th>
        </tr>
        </thead>
        <tbody >
        <tr th:each="movie:${movies}" style="vertical-align: middle">
            <td th:text="${movie.id}" style="vertical-align: middle" >排名</td>
            <td th:text="${movie.movieName}" style="vertical-align: middle">电影名称</td>
            <td th:text="${movie.area}" style="vertical-align: middle">地区</td>
            <td th:text="${movie.year}" style="vertical-align: middle">年代</td>
            <td th:text="${movie.theme}" style="vertical-align: middle">分类</td>
            <td th:text="${movie.qoute}" style="vertical-align: middle">电影简述</td>
            <td th:text="${movie.ratingNum}" style="vertical-align: middle">评分</td>
        </tr>

        </tbody>
    </table>

</div>
</body>
</html>